package com.gostudy.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
//扫描查询数据库的接口
@MapperScan("com.gostudy.gulimall.product.dao")
//扫描公共类的注解，到spring的ico中
@ComponentScan(basePackages = "com.gostudy")
@EnableDiscoveryClient
@EnableSwagger2
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
